home *** CD-ROM | disk | FTP | other *** search
- muteKeyDown = false;
- this.onEnterFrame = function()
- {
- if(_name != "hudd")
- {
- if(_root._currentframe != 8 || _root.gameOver)
- {
- this._visible = false;
- }
- else if(!this.init)
- {
- this.init = true;
- this._visible = true;
- }
- if(this.init)
- {
- if(Key.isDown(72) && !this.hKeyDown)
- {
- this.hKeyDown = true;
- !this._visible ? (this._visible = true) : (this._visible = false);
- }
- else if(!Key.isDown(72))
- {
- this.hKeyDown = false;
- }
- this.swapDepths(_root.getNextHighestDepth());
- }
- if(Key.isDown(83))
- {
- stopAllSounds();
- this.play();
- }
- if(Key.isDown(81))
- {
- if(_quality == "LOW")
- {
- _quality = "MEDIUM";
- }
- else if(_quality == "MEDIUM")
- {
- _quality = "HIGH";
- }
- else if(_quality == "HIGH")
- {
- _quality = "LOW";
- }
- }
- if(Key.isDown(77) && !muteKeyDown)
- {
- muteKeyDown = true;
- _root.vol != 100 ? (_root.vol = 100) : (_root.vol = 0);
- _root.globalSound.setVolume(_root.vol);
- }
- if(!Key.isDown(77) && muteKeyDown)
- {
- muteKeyDown = false;
- }
- }
- };
-